x86/vmx: replace unqualified ud2 instructions with BUG frames
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 3 Nov 2015 17:15:15 +0000 (18:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Nov 2015 17:15:15 +0000 (18:15 +0100)
commit6fc78e13f4770a27237804e484eef7f87b763286
tree3aede29139e73ffe200e08112cb04d70ab193ce7
parentd90b8f8c9fa7ebc07aa0e5f3e553411434ae8ac5
x86/vmx: replace unqualified ud2 instructions with BUG frames

Using new _ASM_BUGFRAME* internals.

A side effect of complicating the ASM statements is that GCC now chooses to
out-of-line the stub functions, resulting in identical copies being present in
all translation units.  As with the stac()/clac() stubs, force them always
inline.

No functional change, other than the failure cases, which now produce a
far more clear error message.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/include/asm-x86/hvm/vmx/vmx.h